<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>First Consult</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<%  String status = ""; %>
 <div id="middlePan">
	<div id="middlebodyPan">
	<h1>Post an article</h1>
    <form id="postquestion" name="postquestion" method="post" action="Article">
		      <p class="note"><span class="req" style="color:red;">*</span> Asterisk fields are required</p>
		      <div class="row">
		        <label for="name"> Label <span class="req" style="color:red;">*</span></label>
		        <input type="text" autofocus name="label" id="label" class="txt" tabindex="1" required>
		      </div>
		      
		      <div class="row">
		        <label for="question"> Content <span class="req" style="color:red;">*</span></label>
		      <textarea rows="2" style="width: 349px; height: 39px;resize:none;" required id="article" name="article" class="txt" tabindex="2"></textarea>
		      </div>
		       <div class="row">
		        <label for="tags">Tags <span class="req" style="color:red;">*</span></label>
		        <input type="text" name="tags" id="tags" class="txt" tabindex="2" required>
		        
		      </div>
		       <div class="center">
		        <input type="submit" id="submitbtn" name="question" tabindex="5" value="Post">
		      </div>
		         <%
		     
		      if(request.getAttribute("postStatus")!=null) 
		    	  status = request.getAttribute("postStatus").toString();
		        else
		        	status = "";
		        		%>
		        		<p><b><%=status%></b></p>
		  </form>
		  <% status = "";%>
	</div>	     
 </div>	  		
</body>
</html>